package com.zfx.service;

import com.zfx.aop.CgLibUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/*
  @Component 为手动装配， 当指定 OrderService 为构造方法自动装配时，创建 OrderService 方法时，就不是用默认的构造方法了
 */
@Component
public class OrderService {

/*	@Autowired
	private UserService userService;*/


	  public OrderService(){
		System.out.println("OrderService 构造 ");
	}
@Autowired(required = false)
	public OrderService(CgLibUtils cgLibUtils){
		System.out.println("OrderService  (CgLibUtils cgLibUtils) 构造 ");
	}
	@Autowired(required = false)
	 public OrderService(LubanService3 lubanService3, Service1 service1){
		System.out.println("OrderService  (LubanService3 lubanService3, Service1 service1)  构造 ");
	}
	@Autowired(required = false)
 	public OrderService( Service1 service1){
		System.out.println("OrderService  service1  构造 ");
	}

}
